package com.nori6.ui;

import com.nori6.R;
import com.nori6.controller.NoriController;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
 
public class RegisterActivity extends NoriActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Set View to register.xml
        setContentView(R.layout.register);
 
        TextView loginScreen = (TextView) findViewById(R.id.link_to_login);
 
        // Listening to Login Screen link
        loginScreen.setOnClickListener(new View.OnClickListener() {
 
            public void onClick(View arg0) 
            {
                
            	// Closing registration screen
                // Switching to Login Screen/closing register screen
                finish();
            }
        });
        
        TextView registerButton = (TextView) findViewById(R.id.btnRegister);
        
        registerButton.setOnClickListener(new View.OnClickListener() {
        	 
            public void onClick(View v) 
            {
                
            	// Switching to Choose Company screen
                Intent i = new Intent(getApplicationContext(), ChoosePlayerActivity.class);
                startActivity(i);
            }
        });
    }

	@Override
	protected NoriController createController() 
	{
		// TODO Auto-generated method stub
		return null;
	}
}